<?php
//测试控制器类
class IndexController extends Controller{
    //动作方法
    public function index(){
        //显示视图
        $this->display();
    }
    public function upload(){
    	//mkdir -p upload/2015/2
    	// p($_FILES);
    	$up = new Upload('upload/'.date('Y/m/d'));
    	$files = $up->upload('pic1');
    	p($files);
    }
}
